<?php

class Core_Form_Admin_Setting_Locale extends Form
{
	function init()
	{
		$this -> setDesc('Please select a default timezone setting for your social network. This will be the default timezone applied to users\' accounts if they do not select a timezone during signup, or if they are not signed in. Select the default locale you want to use on your social network. This will affect the language of the dates that appear on your social network pages.');
		$this -> addChild('select', 'lang', array(
			'label' => 'Default language',
			'required' => true,
			'multiOptions' => I18n::getAllLanguages(),
		));

		$this -> addChild('select', 'timezone', array(
			'label' => 'Default timezone',
			'required' => true,
			'multiOptions' => I18n::getAllTimezones(),
		));

		$this -> addChild('select', 'locale', array(
			'label' => 'Default timezone',
			'required' => true,
			'multiOptions' => I18n::getAllLocales(),
		));

		$this -> addChild('select', 'currency', array(
			'label' => 'Default currency',
			'required' => true,
			'multiOptions' => I18n::getAllCurrencies(),
		));

		$this -> addChild('group', 'buttons');

		$this -> buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
